import type { IconTemplates } from '../../types'

const modules = import.meta.glob('./*.svg', { eager: true })
const icons: Record<string, any> = {}
Object.keys(modules).forEach((k) => {
  const key = k.replace('./', '').replace('.svg', '')
  icons[key] = (modules as any)[k].default
})

const templates: IconTemplates = [
  {
    value: 1,
    label: '2列平铺',
    icon: icons.style_1
  },
  {
    value: 2,
    label: '3列平铺',
    icon: icons.style_2
  }
]

export default templates
